import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
// 全局函数及变量
import Global from './Global';
// 引入axios请求api
import API from './api/request';

Vue.use(ElementUI);
Vue.use(Global);
Vue.prototype.$axios = API;

//注册全局组件（登录注册，列表，菜单、、）
import MyDelMsgBox from './components/MyDelMsgBox.vue'
import MyPagination from './components/MyPagination.vue'
import MySearch from './components/MySearch.vue'
Vue.component("MyDelMsgBox", MyDelMsgBox);
Vue.component("MyPagination", MyPagination)
Vue.component("MySearch", MySearch)


Vue.config.productionTip = false

new Vue({
    router,
    store,
    render: h => h(App),
}).$mount('#app')